<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{/static/js/jquery-1.9.1.min.js}"></script>
    <link rel="stylesheet" type="text/css" th:href="@{/static/layui-v2.6.13/layui/css/layui.css}"/>
</head>
<body bgcolor="blanchedalmond" style="font-family: '微软雅黑';">
  <div style="position: absolute; left: 50%;top: 50%;
           margin-left: -150px;margin-top: -150px; width:
          300px;height: 400px;background-color: whitesmoke">
    <h3 style="text-align: center;margin-top: 20%;">登录系统</h3>
    <form th:action="logincheck" method="post">
        <input type="text" style="height: 20px;width: 180px;margin-left: 60px;margin-top: 20px;" placeholder="请输入手机号" id="phone" name="phone" value="18777377716">
        <input type="password" style="height: 20px;width: 180px;margin-left: 20%;margin-top: 20px;" id="password" name="password" placeholder="请输入密码" value="123">
        <br>
        <button style="width: 190px;margin-left: 20%;margin-top: 20px;"  type="submit" class="layui-btn layui-btn-sm layui-btn-primary">登录</button>
        <button style="width: 190px;margin-left: 20%;margin-top: 20px;" onclick="toreg()" type="button" class="layui-btn layui-btn-sm layui-btn-primary">注册</button>
    </form>
  </div>
</body>
<script>
    function login(){
        var phone = $("#phone").val();
        var pass = $("#password").val();
        location.href= 'logincheck?phone='+phone+'&password='+pass;
    }

    function toreg(){
        location.href='toregister';
    }
</script>
</html>